﻿<UserControl x:Class="DiscoveryLogic.Analytics.Modules.ERRules.PageRuleEditorSrcFields"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit"
    HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="35"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="2*"/>
            <ColumnDefinition Width="35"/>
        </Grid.ColumnDefinitions>
        
        <Label Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center"
               Margin="0,0,20,0">Source entity type:</Label>
        <ComboBox Grid.Row="0" Grid.Column="2" HorizontalAlignment="Stretch"  VerticalAlignment="Center"
                  Margin="10,0,10,0" MinWidth="200"></ComboBox>
        
        <Controls:DataGrid 
            Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2">
            <Controls:DataGrid.Columns>
                <Controls:DataGridTextColumn 
                    Header="Entity field" Width="125" IsReadOnly="True"/>
                <Controls:DataGridComboBoxColumn 
                    Header="Source field" Width="200"/>
            </Controls:DataGrid.Columns>
        </Controls:DataGrid>
    </Grid>
</UserControl>
